* separate command in nerest quick to set executable bit on quick script *.sh files & check quick_dir exists before launch nerest script operations
This commit is contained in:
@ -1,5 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
QUICK_DIR=quick
|
QUICK_DIR=quick
|
||||||
|
|
||||||
cd $QUICK_DIR &&
|
if [[ ! -d $QUICK_DIR ]]; then
|
||||||
find ./ -name "*.sh.example" -exec sh -c 'F={}; cp -u $F ${F%.example} && chmod +x ${F%.example}' \;
|
echo "Quick dir not exists: ${QUICK_DIR}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $QUICK_DIR
|
||||||
|
|
||||||
|
find ./ -name "*.sh.example" -exec sh -c 'F={}; cp -u $F ${F%.example}' \;
|
||||||
|
|
||||||
|
find ./ -name "*.sh" -exec sh -c 'F={}; chmod +x ${F}' \;
|
||||||
|
Reference in New Issue
Block a user