Skip to content

Commit

Permalink
Use long form decode because macOS and Linux disagree
Browse files Browse the repository at this point in the history
In macOS, the base64 binary takes "-D or --decode" and in Linux it takes
"-d or --decode" so we need to use the long form to work on both
platforms.
  • Loading branch information
nugget committed Nov 1, 2017
1 parent 10e3abe commit 8c596c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/netskel
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ netskel_fetch_file() {

if [ "$NETSKEL_PATH_base64" != "" ] ; then
$SSH sendbase64 db/$1 $NETSKEL_UUID $USERNAME $HOSTNAME > $NETSKEL_TMP/b64file
$NETSKEL_PATH_base64 -d $NETSKEL_TMP/b64file > $NETSKEL_TARGET
$NETSKEL_PATH_base64 --decode $NETSKEL_TMP/b64file > $NETSKEL_TARGET
RETVAL=$?
netskel_trace "Processed $NETSKEL_TARGET via base64 ($RETVAL)"
else
Expand Down

0 comments on commit 8c596c5

Please sign in to comment.