diff options
Diffstat (limited to 'psx')
-rwxr-xr-x | psx | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13,8 +13,8 @@ d=$(tar -tf "$f" | head -1) opt= if [ -e "$d" ]; then - printf "%s: $d already exists; overwrite? " "${0##*/}" - read ans + printf "%s: $d already exists; overwrite? " "${0##*/}" 1>&2 + read ans </dev/tty case $ans in y*) opt=-U ;; *) exit 1 ;; @@ -22,5 +22,5 @@ if [ -e "$d" ]; then fi echo extracting archive... 1>&2 -tar -x $opt -f "$f" +tar -x $opt -f "$f" 1>&2 echo "$d" |