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
|
else
|
||||||
lock_path="$file_path.lock"
|
lock_path="$file_path.lock"
|
||||||
until sudo mkdir "$lock_path" 2>/dev/null; do
|
until sudo mkdir "$lock_path" 2>/dev/null; do
|
||||||
echo "Another process is downloading a file at $file_path, waiting"
|
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
if [ "$execute" = "-e" ]; then
|
if [ "$execute" = "-e" ]; then
|
||||||
until [ -z "$(fuser "$file_path" 2>/dev/null)" ]; do
|
until [ -z "$(fuser "$file_path" 2>/dev/null)" ]; do
|
||||||
echo "Waiting for other processes to stop using $file_path..."
|
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user