diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2017-07-17 15:41:59 -0400 |
---|---|---|
committer | Andrew Robbins <contact@andrewrobbins.info> | 2017-07-17 16:52:08 -0400 |
commit | b6a666bf6e4c81660a0862b0db4dc9a13b75d49e (patch) | |
tree | 9f7839ee559de7831e2e660bfebc34f7120ebe76 /libs/project | |
parent | 3adb05d41dd7346c452359a694b629ce37c17272 (diff) | |
download | librebootfr-b6a666bf6e4c81660a0862b0db4dc9a13b75d49e.tar.gz librebootfr-b6a666bf6e4c81660a0862b0db4dc9a13b75d49e.zip |
Use "$*" instead of $@ when assigning as a string
The local variable 'arguments' always stores the positional parameters
passed to it as a string, not an array of strings, so usage of "$*"
makes more sense here instead of $@.
Diffstat (limited to 'libs/project')
-rwxr-xr-x | libs/project | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libs/project b/libs/project index f18157de..a9461b28 100755 --- a/libs/project +++ b/libs/project @@ -78,7 +78,7 @@ project_action() { shift local project="$1" shift - local arguments="$@" + local arguments="$*" ( set +e @@ -156,7 +156,7 @@ project_action_arguments_verify_recursive() { local action_helper_arguments # Store final argument. - local argument="${@:$#}" + local argument="${*:$#}" local test @@ -328,7 +328,7 @@ project_sources_directory_filled_check() { project_sources_directory_filled_error() { local project=$1 shift - local arguments=$@ + local arguments="$*" local sources_path=$( project_sources_path "$project" "$@" ) @@ -344,7 +344,7 @@ project_sources_directory_filled_error() { project_sources_directory_missing_empty_error() { local project=$1 shift - local arguments=$@ + local arguments="$*" local sources_path=$( project_sources_path "$project" "$@" ) @@ -391,7 +391,7 @@ project_sources_archive() { project_sources_archive_extract() { local project=$1 shift - local arguments=$@ + local arguments="$*" local archive=$( project_sources_archive "$project" "$@" ) local destination=$( dirname "$archive" ) @@ -405,7 +405,7 @@ project_sources_archive_extract() { project_sources_archive_update() { local project=$1 shift - local arguments=$@ + local arguments="$*" local repository=$project local sources_path=$( project_sources_path "$project" "$repository" "$@" ) @@ -426,7 +426,7 @@ project_sources_archive_update() { project_sources_archive_missing_error() { local project=$1 shift - local arguments=$@ + local arguments="$*" local archive=$( project_sources_archive "$project" "$@" ) if [ -z "$archive" ] || ! [ -f "$archive" ] @@ -807,7 +807,7 @@ project_build_path() { project_build_directory_missing_empty_error() { local project=$1 shift - local arguments=$@ + local arguments="$*" local build_path=$( project_build_path "$project" "$@" ) @@ -1013,7 +1013,7 @@ project_install_path() { project_install_directory_missing_empty_error() { local project=$1 shift - local arguments=$@ + local arguments="$*" local install_path=$( project_install_path "$project" "$@" ) @@ -1123,7 +1123,7 @@ project_release_sources_archive_path() { project_release_sources_archive_create() { local project=$1 shift - local arguments=$@ + local arguments="$*" local repository=$project local archive_path=$( project_release_sources_archive_path "$project" "$@" ) @@ -1262,7 +1262,7 @@ project_release_install_archive_create() { shift local prefix=$1 shift - local arguments=$@ + local arguments="$*" local install_path=$( project_install_path "$project" "$@" ) local archive_path=$( project_release_archive_path "$project" "$prefix" "$@" ) @@ -1310,7 +1310,7 @@ project_release_install_rootfs_create() { shift local prefix=$1 shift - local arguments=$@ + local arguments="$*" local install_path=$( project_install_path "$project" "$@" ) local rootfs_path=$( project_release_rootfs_path "$project" "$prefix" "$@" ) |