Skip to content

Commit 37299d7

Browse files
.
1 parent 7015049 commit 37299d7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

etc/scripts/hippo/hippo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function __force_uprade_hippo()
107107
if [ ! -d "$CACHE_ROOT" ]; then
108108
mkdir "$CACHE_ROOT"
109109
else
110-
rm -rf "${CACHE_ROOT:?}/"*
110+
rm -rf "${CACHE_ROOT}/fs-manager-hippo"
111111
fi
112112

113113
FSM_URL="https://github.com/RandomCoderOrg/fs-manager-hippo"

install.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ BIN_DIR="${TPREFIX}/usr/bin"
66
echo "setting hippo..."
77

88
if [ -f etc/scripts/hippo/hippo.sh ]; then
9-
DIR="etc/scripts/hippo/hippo.sh"
10-
cp ${DIR} ${BIN_DIR}/hippo
9+
FILE="etc/scripts/hippo/hippo.sh"
10+
if [ -f ${BIN_DIR}/hippo.sh ]; then
11+
rm -rf "${BIN_DIR}/hippo.sh"
12+
fi
13+
cp ${FILE} ${BIN_DIR}/hippo
1114
chmod 775 ${BIN_DIR}/hippo
1215
else
1316
echo "Installation Failed..."

0 commit comments

Comments
 (0)