Skip to content

Commit

Permalink
In bulk_request: rename local var pathlist to filepath in case of 1 file
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Nov 25, 2024
1 parent 32c057b commit 7cf2451
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ada/ada
Original file line number Diff line number Diff line change
Expand Up @@ -882,13 +882,14 @@ bulk_request() {
local pathlist="$2"
local recursive="$3"
if [ "$from_file" == false ] ; then
get_locality "$pathlist"
local filepath="$2"
get_locality "$filepath"
error=$?
if [ "$error" == 1 ] ; then
echo 1>&2 "Error: '$pathlist' does not exist."
echo 1>&2 "Error: '$filepath' does not exist."
exit 1
fi
type=$(pathtype "$pathlist")
type=$(pathtype "$filepath")
case $type in
DIR )
if $recursive ; then
Expand All @@ -901,7 +902,7 @@ bulk_request() {
expand=NONE
;;
'' )
echo "Warning: could not determine object type of '$pathlist'."
echo "Warning: could not determine object type of '$filepath'."
;;
* )
echo "Unknown object type '$type'. Please create an issue for this in Github."
Expand Down

0 comments on commit 7cf2451

Please sign in to comment.