added missing file checking for rm_bg
This commit is contained in:
@@ -11,12 +11,12 @@ function helpexit() {
|
|||||||
|
|
||||||
tempfolders=()
|
tempfolders=()
|
||||||
for f in "$@"; do
|
for f in "$@"; do
|
||||||
d=$( readlink -nf $( dirname "$f" ) )/.rm_bg.$$
|
|
||||||
mkdir -p "$d"
|
|
||||||
[[ -e "$f" ]] || {
|
[[ -e "$f" ]] || {
|
||||||
echo "$f" does not exist
|
echo "$f" does not exist
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
d=$( readlink -nf $( dirname "$f" ) )/.rm_bg.$$
|
||||||
|
mkdir -p "$d"
|
||||||
mv "$f" "$d"/
|
mv "$f" "$d"/
|
||||||
tempfolders+=( "$d" )
|
tempfolders+=( "$d" )
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user