Fix pico execution functions as they require a file to work on

This commit is contained in:
Andrea Cardaci 2018-05-29 20:43:54 +02:00
parent d665a38758
commit c634e3898f

View File

@ -7,7 +7,7 @@ functions:
TF=$(mktemp)
echo "$COMMAND" > $TF
chmod +x $TF
pico -s $TF
pico -s $TF /etc/hosts
^T
sudo-enabled:
- description: After running this exit the editor to see the command output.
@ -16,7 +16,7 @@ functions:
TF=$(mktemp)
echo "$COMMAND" > $TF
chmod +x $TF
sudo pico -s $TF
sudo pico -s $TF /etc/hosts
^T
suid-enabled:
- description: After running this exit the editor to see the command output.
@ -25,7 +25,7 @@ functions:
TF=$(mktemp)
echo $'#!/bin/sh -p\n'"$COMMAND" > $TF
chmod +x $TF
./pico -s $TF
./pico -s $TF /etc/hosts
^T
file-read:
- code: |