diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-06-08 22:04:38 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | 2f2555bb21dc0f53cf28155082a2bb0ac12c8959 (patch) | |
tree | e7c61243bfa9e93e91db244de7792197d5e47a5e /scripts | |
parent | 3605255a8e6eabd20490e784f9535ee540c1d079 (diff) |
Compile cmake sub project as cmake
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 |