diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/download_dependencies.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/download_dependencies.sh b/scripts/download_dependencies.sh index ff68267..9f8ec7a 100755 --- a/scripts/download_dependencies.sh +++ b/scripts/download_dependencies.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh if (( "$#" != 1 )); then echo "usage: download_dependencies.sh <program_name>" @@ -11,8 +11,8 @@ if [ $(id -u) = 0 ]; then fi program_name="$1" -script_path=`readlink -f $0` -script_dir=`dirname $script_path` +script_path=$(readlink -f "$0") +script_dir=$(dirname "$script_path") if [ -f /usr/lib/sibs/"$program_name".cache ]; then #echo "No need to download dependencies, all dependencies exist in cache" @@ -123,4 +123,4 @@ if [ $is_root -eq 0 ]; then touch ~/.local/lib/sibs/"$program_name".cache else touch /usr/lib/sibs/"$program_name".cache -fi
\ No newline at end of file +fi |