Skip to content

Instantly share code, notes, and snippets.

@shturm
Created January 26, 2016 10:14
Show Gist options
  • Save shturm/72651b814b5b62987ee7 to your computer and use it in GitHub Desktop.
Save shturm/72651b814b5b62987ee7 to your computer and use it in GitHub Desktop.
Execute makeself script from anywhere (https://github.com/megastep/makeself)
MAKESELFPATH=/home/alx/bin/makeself
PAYLOADFOLDER=$(readlink -e $1)
OUTPUTFILENAME=$(pwd)/$2
LABEL=$3
INSTALLER=$(readlink -e $4)
cd $MAKESELFPATH
echo "Executing: sh makeself.sh $PAYLOADFOLDER $OUTPUTFILENAME $LABEL $INSTALLER"
sh makeself.sh $PAYLOADFOLDER $OUTPUTFILENAME $LABEL $INSTALLER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment