Check if ~/bin exists before copying
This commit is contained in:
parent
9531b393ab
commit
538a44187c
@ -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 "---------------------------------------------------------"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user