mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-21 19:31:06 +07:00
Fix status code output in get function
This commit is contained in:
parent
80075aeba5
commit
a75ffb672b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user