Merge pull request #21 from SantiagoBautista/master
Minor fix: check if ~/bin exists before copying scyther-linux
This commit is contained in:
@@ -18,8 +18,10 @@ echo "Built the Linux binary"
|
||||
cp scyther-linux ../gui/Scyther/
|
||||
|
||||
# bonus...
|
||||
cp scyther-linux ~/bin
|
||||
if [ -d ~/bin ] ; then
|
||||
cp scyther-linux ~/bin/
|
||||
fi
|
||||
|
||||
echo Copied the file to the gui directory and \~/bin
|
||||
echo "Copied the file to the gui directory and \~/bin (if present)"
|
||||
echo "---------------------------------------------------------"
|
||||
|
||||
|
||||
@@ -15,8 +15,10 @@ echo "Built the Linux binary"
|
||||
cp scyther-linux ../gui/Scyther/
|
||||
|
||||
# bonus...
|
||||
cp scyther-linux ~/bin
|
||||
if [ -d ~/bin ] ; then
|
||||
cp scyther-linux ~/bin/
|
||||
fi
|
||||
|
||||
echo Copied the file to the gui/Scyther directory and \~/bin
|
||||
echo "Copied the file to the gui/Scyther directory and ~/bin (if present)"
|
||||
echo "---------------------------------------------------------"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user