better dir
This commit is contained in:
parent
2fabe40e9d
commit
6b31d28a31
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ help() {
|
||||||
}
|
}
|
||||||
|
|
||||||
LOC="$1" ; [ -n "$LOC" ] || help
|
LOC="$1" ; [ -n "$LOC" ] || help
|
||||||
TEMP_DIR="/tmp/sharedir"
|
TEMP_DIR="$HOME/Public"
|
||||||
|
|
||||||
[ -d "$LOC" ] && DIR="$LOC" || DIR="$TEMP_DIR"
|
[ -d "$LOC" ] && DIR="$LOC" || DIR="$TEMP_DIR"
|
||||||
[ "$DIR" = "$TEMP_DIR" ] && mkdir -p "$TEMP_DIR" && cp -f "$LOC" "$DIR/"
|
[ "$DIR" = "$TEMP_DIR" ] && mkdir -p "$TEMP_DIR" && cp -f "$LOC" "$DIR/"
|
||||||
|
|
Loading…
Reference in a new issue