safe-rm 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/rm.sh +1 -1
- package/package.json +1 -1
package/bin/rm.sh
CHANGED
|
@@ -387,7 +387,7 @@ for file in "${FILE_NAME[@]}"; do
|
|
|
387
387
|
fi
|
|
388
388
|
|
|
389
389
|
#the same check also apply on /. /..
|
|
390
|
-
if [[ $(basename $file) = "." || $(basename $file) = ".." ]]; then
|
|
390
|
+
if [[ $(basename "$file") = "." || $(basename "$file") = ".." ]]; then
|
|
391
391
|
echo "$COMMAND: \".\" and \"..\" may not be removed"
|
|
392
392
|
EXIT_CODE=1
|
|
393
393
|
continue
|