Does anyone know if a pacman hook will accept an interactive prompt from an associated script.
If I run the script outside the hook the prompt works fine and initiates a backup depending on your choice selected.
If I run the script from the hook it is completely ignored.
Here is the script:
echo "timeshift backup process beginning"
read -p "cancel timeshift snapshot? (y/n) " RESP
if [ "$RESP" = "y" ]; then
echo "timeshift snapshot canceled"
echo "initiating timeshift snapshot"; /usr/bin/timeshift --create --comments "timeshift-pacman-hook-snapshot"
I'm not sure if this is a limitation of what is permitted in a hook, or if I'm doing something wrong?.
This is not exactly what I want to do, this is just a starting point for testing. I would like a 10 second countdown timer that defaults to making a snapshot if the backup is not canceled.
None of this is imperative by any means, it's just a fun way of trying to improve my rather poor scripting skills.
Anyone have any idea what's the issue?