change image from ubuntu to bash
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kim Oliver Drechsel 2021-09-21 20:15:30 +02:00
parent 8bbf43ebfb
commit e0e70a4190

View File

@ -19,7 +19,7 @@ trash_put() {
trash_empty() {
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() {
@ -42,7 +42,7 @@ trash_rm() {
else FILEPATH_TO_REMOVE="$FILE_TO_REMOVE"
fi
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
echo "$FILE_TO_REMOVE is not in Trash." && false
fi