Skip to content

Commit

Permalink
Fix status code output in get function
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Nov 11, 2024
1 parent 80075ae commit a75ffb6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/scripts/unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,10 @@ get() {
else
lock_path="$file_path.lock"
until sudo mkdir "$lock_path" 2>/dev/null; do
echo "Another process is downloading a file at $file_path, waiting"
sleep 1
done
if [ "$execute" = "-e" ]; then
until [ -z "$(fuser "$file_path" 2>/dev/null)" ]; do
echo "Waiting for other processes to stop using $file_path..."
sleep 1
done
fi
Expand Down

0 comments on commit a75ffb6

Please sign in to comment.