More consistent $ escapes
This commit is contained in:
8
utils.sh
8
utils.sh
@@ -17,7 +17,7 @@ upgrade() {
|
||||
|
||||
# @arg $1 packages to install
|
||||
install() {
|
||||
sudo apt-get install -y $1
|
||||
sudo apt-get install -y "$1"
|
||||
}
|
||||
|
||||
# @arg $1 repository to add
|
||||
@@ -27,13 +27,13 @@ app_ppa() {
|
||||
|
||||
# @arg $1 url to add
|
||||
add_key() {
|
||||
curl -fsSL $1 | sudo apt-key add -
|
||||
curl -fsSL "$1" | sudo apt-key add -
|
||||
}
|
||||
|
||||
# @arg $1 URL to run
|
||||
# @arg $2 binary to use
|
||||
run() {
|
||||
curl -fsSL $1 | $2
|
||||
curl -fsSL "$1" | "$2"
|
||||
}
|
||||
|
||||
# Symlink contents of source folder to target
|
||||
@@ -41,7 +41,7 @@ run() {
|
||||
# @arg $1 source folder
|
||||
# @arg $2 target folder
|
||||
link_folder() {
|
||||
cp -srf $1 $2
|
||||
cp -srf "$1" "$2"
|
||||
}
|
||||
|
||||
indent() { sed 's/^/ /'; }
|
||||
|
||||
Reference in New Issue
Block a user