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