Copy and install unless --files-only specified
This commit is contained in:
parent
242089bb2c
commit
599937b806
2
copy.sh
2
copy.sh
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ "$1" != "--install" ]]; then
|
|
||||||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||||
FAKE_HOME="$SCRIPT_DIR/fake_home"
|
FAKE_HOME="$SCRIPT_DIR/fake_home"
|
||||||
|
|
||||||
|
@ -22,6 +21,7 @@ if [[ "$1" != "--install" ]]; then
|
||||||
done
|
done
|
||||||
|
|
||||||
touch "$HOME/.zsh_local"
|
touch "$HOME/.zsh_local"
|
||||||
|
if [[ "$1" == "--files-only" ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue