diff --git a/install/build.sh b/install/build.sh index 60785c4..3f6b8e0 100755 --- a/install/build.sh +++ b/install/build.sh @@ -23,7 +23,7 @@ case $1 in mv -v $SRC_DIR/glacier $PREFIX printf "directory $PREFIX/bin does not exist, moving to $PREFIX instead\n" fi - CC $SRC_DIR/int-check/main.c -o glacier-integrity-check + $CC $SRC_DIR/int-check/main.c -o glacier-integrity-check mv -v $SRC_DIR/int-check/glacier-integrity-check $PREFIX/bin if [ "$?" != 0 ]; then mv -v $SRC_DIR/int-check/glacier-integrity-check $PREFIX @@ -64,8 +64,9 @@ case $1 in printf "updating executable\n" rm -v $PREFIX/bin/glacier || rm -v $PREFIX/glacier rm -v $PREFIX/bin/glacier-integrity-check || rm -v $PREFIX/glacier-integrity-check - mv -v $SRC_DIR/glacier $PREFIX || mv -v $SRC_DIR/glacier $PREFIX/bin - mv -v $SRC_DIR/glacier-integrity-check $PREFIX || mv -v $SRC_DIR/glacier-integrity-check $PREFIX/bin + mv -v $SRC_DIR/glacier $PREFIX/bin || mv -v $SRC_DIR/glacier $PREFIX + $CC $SRC_DIR/int-check/main.c -o glacier-integrity-check + mv -v $SRC_DIR/int-check/glacier-integrity-check $PREFIX/bin || mv -v $SRC_DIR/int-check/glacier-integrity-check $PREFIX printf "finished updating\n" exit 0 esac