change image from ubuntu to bash
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8bbf43ebfb
commit
e0e70a4190
4
trash.sh
4
trash.sh
@ -19,7 +19,7 @@ trash_put() {
|
|||||||
|
|
||||||
trash_empty() {
|
trash_empty() {
|
||||||
echo "Delete all $(find "$HOME"/.trash/ ! -name ".filepaths" | wc -l) files in trash?"
|
echo "Delete all $(find "$HOME"/.trash/ ! -name ".filepaths" | wc -l) files in trash?"
|
||||||
\rm -Ir "$HOME"/.trash/* && echo >"$FILE_PATHS_FILE"
|
\rm -ir "$HOME"/.trash/* && echo >"$FILE_PATHS_FILE"
|
||||||
}
|
}
|
||||||
|
|
||||||
trash_restore() {
|
trash_restore() {
|
||||||
@ -42,7 +42,7 @@ trash_rm() {
|
|||||||
else FILEPATH_TO_REMOVE="$FILE_TO_REMOVE"
|
else FILEPATH_TO_REMOVE="$FILE_TO_REMOVE"
|
||||||
fi
|
fi
|
||||||
if [ -f "$FILEPATH_TO_REMOVE" ]; then
|
if [ -f "$FILEPATH_TO_REMOVE" ]; then
|
||||||
\rm -rf "$FILEPATH_TO_REMOVE" && sed -i "/$FILE_TO_REMOVE/d" "$FILE_PATHS_FILE"
|
\rm -irf "$FILEPATH_TO_REMOVE" && sed -i "/$FILE_TO_REMOVE/d" "$FILE_PATHS_FILE"
|
||||||
else
|
else
|
||||||
echo "$FILE_TO_REMOVE is not in Trash." && false
|
echo "$FILE_TO_REMOVE is not in Trash." && false
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user