Skip to content

Commit

Permalink
Fix install.sh false success report bug
Browse files Browse the repository at this point in the history
install() & remove() will now return an error code if any of the
commands fail.
  • Loading branch information
sjrct committed Aug 23, 2017
1 parent 97203d3 commit a2e72ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ fi

# Define functions
function uninstall {
rm -f $VERBOSE $BINLOC
rm -f $VERBOSE $BINLOC &&
rm -rf $VERBOSE $SRCLOC
}

function install {
# Sed was being fussy on FreeBSD, used ed, the one true text editor
printf "1a\nSRCLOC=$SRCLOC\n.\n,p\n" | ed -s run-scripts/halibot > $BINLOC
chmod +x $BINLOC
printf "1a\nSRCLOC=$SRCLOC\n.\n,p\n" | ed -s run-scripts/halibot > $BINLOC &&
chmod +x $BINLOC &&

mkdir -p $SRCLOC
cp $VERBOSE main.py $SRCLOC
cp -r $VERBOSE halibot $SRCLOC/halibot
mkdir -p $SRCLOC &&
cp $VERBOSE main.py $SRCLOC &&
cp -r $VERBOSE halibot $SRCLOC/halibot &&
cp -r $VERBOSE packages $SRCLOC/packages
}

Expand Down

0 comments on commit a2e72ba

Please sign in to comment.