diff --git a/bin/_blackbox_common.sh b/bin/_blackbox_common.sh index 3f8e65e..0cd31ae 100755 --- a/bin/_blackbox_common.sh +++ b/bin/_blackbox_common.sh @@ -351,7 +351,7 @@ function which_vcs() { # Is this file in the current repo? function is_in_vcs() { - is_in_$(which_vcs) """$@""" + is_in_$(which_vcs) "$@" } # Mercurial function is_in_hg() { @@ -405,23 +405,23 @@ function is_in_unknown() { # Add a file to the repo (but don't commit it). function vcs_add() { - vcs_add_$(which_vcs) """$@""" + vcs_add_$(which_vcs) "$@" } # Mercurial function vcs_add_hg() { - hg add """$@""" + hg add "$@" } # Git function vcs_add_git() { - git add """$@""" + git add "$@" } # Subversion function vcs_add_svn() { - svn add --parents """$@""" + svn add --parents "$@" } # Perfoce function vcs_add_p4() { - p4 add """$@""" + p4 add "$@" } # No repo function vcs_add_unknown() { @@ -431,23 +431,23 @@ function vcs_add_unknown() { # Commit a file to the repo function vcs_commit() { - vcs_commit_$(which_vcs) """$@""" + vcs_commit_$(which_vcs) "$@" } # Mercurial function vcs_commit_hg() { - hg commit -m"""$@""" + hg commit -m"$@" } # Git function vcs_commit_git() { - git commit -m"""$@""" + git commit -m"$@" } # Subversion function vcs_commit_svn() { - svn commit -m"""$@""" + svn commit -m"$@" } # Perforce function vcs_commit_p4() { - p4 submit -d """$@""" + p4 submit -d "$@" } # No repo function vcs_commit_unknown() { @@ -458,23 +458,23 @@ function vcs_commit_unknown() { # Remove file from repo, even if it was deleted locally already. # If it doesn't exist yet in the repo, it should be a no-op. function vcs_remove() { - vcs_remove_$(which_vcs) """$@""" + vcs_remove_$(which_vcs) "$@" } # Mercurial function vcs_remove_hg() { - hg rm -A -- """$@""" + hg rm -A -- "$@" } # Git function vcs_remove_git() { - git rm --ignore-unmatch -f -- """$@""" + git rm --ignore-unmatch -f -- "$@" } # Subversion function vcs_remove_svn() { - svn delete """$@""" + svn delete "$@" } # Perforce function vcs_remove_p4() { - p4 delete """$@""" + p4 delete "$@" } # No repo function vcs_remove_unknown() { diff --git a/bin/_stack_lib.sh b/bin/_stack_lib.sh index e3c3abb..2064fd4 100755 --- a/bin/_stack_lib.sh +++ b/bin/_stack_lib.sh @@ -11,13 +11,13 @@ function debugmsg() { # Log to stderr. - echo 1>&2 LOG: """$@""" + echo 1>&2 LOG: "$@" : } function logit() { # Log to stderr. - echo 1>&2 LOG: """$@""" + echo 1>&2 LOG: "$@" } function fail_out() { diff --git a/bin/blackbox_cat b/bin/blackbox_cat index 604eee7..2e2a908 100755 --- a/bin/blackbox_cat +++ b/bin/blackbox_cat @@ -7,7 +7,7 @@ set -e blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) source "${blackbox_home}/_blackbox_common.sh" -for param in """$@""" ; do +for param in "$@" ; do shreddable=0 unencrypted_file=$(get_unencrypted_filename "$param") if [[ ! -e "$unencrypted_file" ]]; then diff --git a/bin/blackbox_edit b/bin/blackbox_edit index b72f957..11c01ff 100755 --- a/bin/blackbox_edit +++ b/bin/blackbox_edit @@ -7,7 +7,7 @@ set -e blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) source "${blackbox_home}/_blackbox_common.sh" -for param in """$@""" ; do +for param in "$@" ; do unencrypted_file=$(get_unencrypted_filename "$param") if ! is_on_cryptlist "$param" && ! is_on_cryptlist "$unencrypted_file" ; then read -r -p "Encrypt file $param? (y/n) " ans diff --git a/bin/blackbox_edit_start b/bin/blackbox_edit_start index cf327b7..39a683f 100755 --- a/bin/blackbox_edit_start +++ b/bin/blackbox_edit_start @@ -8,7 +8,7 @@ set -e blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) source "${blackbox_home}/_blackbox_common.sh" -for param in """$@""" ; do +for param in "$@" ; do unencrypted_file=$(get_unencrypted_filename "$param") encrypted_file=$(get_encrypted_filename "$param") echo >&2 ========== PLAINFILE '"'$unencrypted_file'"'