summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmael Luceno2020-05-15 21:16:27 +0200
committerIsmael Luceno2020-05-15 21:23:12 +0200
commit05f34766ed2b2c7ddba0702ec62c18458388042f (patch)
tree49abfbd4a593b475400797c81b4d60ffb2139512
parent332d95acc28bd7f48a6e65cec29b64beea8633ee (diff)
install.sh: Simplify setting INSTALL_ROOT variable
-rwxr-xr-xinstall.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index 4500ed6..d99a2d8 100755
--- a/install.sh
+++ b/install.sh
@@ -1,10 +1,6 @@
#!/bin/bash
-if [[ $2 ]] ; then
- INSTALL_ROOT="$2"
-else
- INSTALL_ROOT=""
-fi
+INSTALL_ROOT="$2"
if [[ "$1" == "install" ]]; then
if ! grep -q "\./install.sh$" <<< "$0"; then