Skip to content

Instantly share code, notes, and snippets.

@pydevops
Forked from shturm/makeself-exec.sh
Last active September 6, 2018 16:35
Show Gist options
  • Save pydevops/2afff4b83523e9ae0f7d56ea85f62d91 to your computer and use it in GitHub Desktop.
Save pydevops/2afff4b83523e9ae0f7d56ea85f62d91 to your computer and use it in GitHub Desktop.
Execute makeself script from anywhere (https://github.com/megastep/makeself)
MAKESELFPATH=/opt/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