mirror of
https://github.com/jarun/advcpmv.git
synced 2026-02-01 21:27:42 +01:00
set -e on install script
make the script exit if any command fails
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
ADVCPMV_VERSION=${1:-0.9}
|
ADVCPMV_VERSION=${1:-0.9}
|
||||||
CORE_UTILS_VERSION=${2:-9.0}
|
CORE_UTILS_VERSION=${2:-9.0}
|
||||||
|
|
||||||
@@ -15,4 +17,4 @@ rm coreutils-$CORE_UTILS_VERSION.tar.xz
|
|||||||
cp ./src/cp ../advcp
|
cp ./src/cp ../advcp
|
||||||
cp ./src/mv ../advmv
|
cp ./src/mv ../advmv
|
||||||
)
|
)
|
||||||
rm -rf coreutils-$CORE_UTILS_VERSION
|
rm -rf coreutils-$CORE_UTILS_VERSION
|
||||||
|
|||||||
Reference in New Issue
Block a user