(MOD) Added a feature where it displays the current user identity once it's not root.
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$(whoami)" != "root" ]; then
|
||||||
|
echo "The script require root privilege to execute properly. Current identity: $(whoami)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Install Compound library.
|
# Install Compound library.
|
||||||
echo "Installing libcompound:"
|
echo "Installing libcompound:"
|
||||||
cp -v "libcompound.so" "/usr/lib"
|
cp -v "libcompound.so" "/usr/lib"
|
||||||
|
@@ -1,14 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ "`whoami`" != "root" ]; then
|
if [ "$(whoami)" != "root" ]; then
|
||||||
echo "The script require root privilege to execute properly."
|
echo "The script require root privilege to execute properly. Current identity: $(whoami)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# echo "Please ensure the current work directory is the home directory to the project Compound!
|
|
||||||
# Press enter key to continue..."
|
|
||||||
# read
|
|
||||||
|
|
||||||
SRC="$PWD"
|
SRC="$PWD"
|
||||||
DST=/usr/include/Compound
|
DST=/usr/include/Compound
|
||||||
PROJ=("Array" "Paper" "Pen" "Render" "Status" "Var" "MemMan" "Stack" "Utils"\
|
PROJ=("Array" "Paper" "Pen" "Render" "Status" "Var" "MemMan" "Stack" "Utils"\
|
||||||
|
Reference in New Issue
Block a user