Skip to content

Commit

Permalink
Code & Features Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaneltitane committed Jun 26, 2024
1 parent 0035cba commit 5bda62e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frobulator
Original file line number Diff line number Diff line change
Expand Up @@ -2434,6 +2434,8 @@ frobulator.delete () {

if [ $# -eq 1 ]
then
path="${PWD}"

if [[ -n "${#list[@]}" ]]
then
# ${1} - array
Expand All @@ -2459,8 +2461,6 @@ frobulator.delete () {
list=(${@:2})
else
item="${2}"

item="${path}"/"${item}"

list=()

Expand All @@ -2478,7 +2478,7 @@ frobulator.delete () {
rm \
--recursive \
--force \
"${item}"
"${path}"/"${item}"
done

# unset array
Expand Down

0 comments on commit 5bda62e

Please sign in to comment.