We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32062dc commit 85c490dCopy full SHA for 85c490d
bin/v-change-user-php-cli
@@ -44,6 +44,11 @@ if [ ! -f "$HESTIA_INSTALL_DIR/multiphp/$WEB_SYSTEM/PHP-${version//.}.sh" ]; the
44
exit
45
fi
46
47
+#create .bash_aliases is not exsists
48
+if [ ! -f "$FILE" ]; then
49
+ touch "$FILE"
50
+fi
51
+
52
if grep -q "alias php='env php$version'" "$FILE"; then
53
echo "PHP CLI Already defined"
54
exit;
@@ -53,11 +58,6 @@ fi
58
# Action #
59
#----------------------------------------------------------#
55
60
56
-#create .bash_aliases is not exsists
57
-if [ ! -f "$FILE" ]; then
- touch "$FILE"
-fi
-
61
sed -i "/alias php='env/d" "$FILE"
62
63
echo "alias php='env php$version'" >> $FILE
0 commit comments