command_exists: wrap variable in curly braces

This commit is contained in:
0xmachos
2018-03-09 13:39:43 +00:00
parent 0c26203ff7
commit 86e18aabc1

View File

@@ -21,7 +21,9 @@ echo "#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#"
echo
command_exists () {
command -v "$1" /dev/null 2&>1
command -v "${1}" /dev/null 2&>1
}
get_permission () {