fix $() escape

This commit is contained in:
Andrejus
2020-02-26 16:37:45 +00:00
parent 5eb2d655a4
commit 8721fd1cc5
3 changed files with 5 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ readonly installer="$dotfiles_dir/$INSTALLER"
echo "using installer: $installer"
# Ensure git is installed
if ! [ -x "$(command -v git)" ]; then
if ! [ -x $(command -v git) ]; then
echo "installing git..."
sudo apt-get update -qqy
sudo apt-get install git -qqy

View File

@@ -10,6 +10,6 @@ readonly package_list_file="00-apt-pkglist"
update
upgrade
# Package installs
readonly package_list="$(cat $install_dir/$package_list_file)"
install -y "$package_list"
# Package installs (don't escape list)
readonly package_list=$(cat $install_dir/$package_list_file)
install -y $package_list

View File

@@ -48,7 +48,7 @@ indent() { sed 's/^/ /'; }
# @arg $1 binary to test
not_installed() {
! [ -x "$(command -v $1)" ]
! [ -x $(command -v $1) ]
}
# Colors