From da95f31dd3abf46aebcfeb7a68fd0a7f0fe4e9c6 Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Mon, 28 Dec 2020 15:26:38 +0100
Subject: [PATCH] The "alias" do nothing in scripts

---
 stpkg | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/stpkg b/stpkg
index d1d47c5..9a1b950 100755
--- a/stpkg
+++ b/stpkg
@@ -49,13 +49,12 @@ require() {
     for CMD in $*; do
         local __cmd=`which $1`
         [ $? -ne 0 ] && die "Failed to find the '$1' command"
-        alias $CMD=$__cmd
         REQUIREMENTS="$CMD $REQUIREMENTS"
     done
 }
 require \
     md5sum mktemp column uuidgen convert montage identify python curl \
-    sed tr git sponge ls find jq chmod cat expr
+    sed tr git sponge ls find jq chmod cat expr iconv
 __grep=`which egrep`
 if [ $? -ne 0 ]; then
     __grep=`which grep`
@@ -63,7 +62,6 @@ if [ $? -ne 0 ]; then
     warn "Cound not find 'egrep', will use 'grep' instead." \
          "Please, note that some functionalities may not work with regular expressions."
 fi
-alias grep=$__grep
 
 SELF=`readlink -f "$0"`
 MD5=`md5sum $SELF`
@@ -388,7 +386,7 @@ cat << EOF
     `__green STPKG_NO_MSG`      `__italic $($COLOR_STNOMSG $STPKG_NO_MSG)`
     `__green STPKG_HOMESERV`    `__italic $STPKG_HOMESERV`
     `__green STPKG_TOKEN`       $TOKEN
-`__bold aliased commands due to the '"require"' function:`
+`__bold required commands due to the '"require"' function:`
     safe (system)     `__green $SAFE`
     unsafe (user)     $UNSAFE
 EOF
-- 
GitLab