mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Make user get prompted if extracted file overwrites another file
This commit is contained in:
parent
d84804d781
commit
f7fad2bd24
@ -15,7 +15,7 @@ esac done
|
||||
|
||||
[ -z "$archives" ] && printf "Give archives to extract as argument.\\n" && exit 1
|
||||
|
||||
while IFS= read -r file ; do
|
||||
while IFS= read -r file <&3; do
|
||||
if [ -f "$file" ] ; then
|
||||
if [ -z "$extracthere" ]; then
|
||||
directory="$(echo "$file" | sed 's/\.[^\/.]*$//')" &&
|
||||
@ -42,4 +42,4 @@ while IFS= read -r file ; do
|
||||
else
|
||||
printf "File \"%s\" not found.\\n" "$file"
|
||||
fi
|
||||
done <<< "$archives"
|
||||
done 3<<< "$archives"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user