(MOD) Modified file install that added auto-creating directory in need.
This commit is contained in:
5
install
5
install
@@ -14,6 +14,11 @@ DST=/usr/include/Compound
|
|||||||
PROJ=("Array" "Paper" "Pen" "Render" "Status" "Var" "MemMan" "Stack" "Utils"\
|
PROJ=("Array" "Paper" "Pen" "Render" "Status" "Var" "MemMan" "Stack" "Utils"\
|
||||||
"String" "Object")
|
"String" "Object")
|
||||||
|
|
||||||
|
# Create directory.
|
||||||
|
if [ ! -d "$DST" ]; then
|
||||||
|
mkdir -pv "$DST"
|
||||||
|
fi
|
||||||
|
|
||||||
PROJLEN=${#PROJ[*]}
|
PROJLEN=${#PROJ[*]}
|
||||||
echo "======== $PROJLEN projects in total ========"
|
echo "======== $PROJLEN projects in total ========"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user