Skip to content

Commit c67f66e

Browse files
authored
Change restore to reopen
1 parent 147b5da commit c67f66e

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

save-restore-opened-apps

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/usr/bin/env bash
2-
# Save the current opened GUI applications.
3-
# And re-open or restore them
42

53
MSG_SAVE="save running apps"
64
MSG_REOPEN="reopen the previous running apps"
@@ -42,7 +40,7 @@ save()
4240
done > "$LOCATION_OF_CURRENT_RUNNING_APPS"
4341
}
4442

45-
restore()
43+
reopen()
4644
{
4745
SAVEIFS=$IFS
4846
IFS=$(echo -en "\n\b")
@@ -88,11 +86,11 @@ check_user
8886
if [ x"$1" = x"-s" -o x"$1" = x"--save" ]; then
8987
confirm "$MSG_SAVE"
9088
save
91-
elif [ x"$1" = x"-r" -o x"$1" = x"--restore" ]; then
89+
elif [ x"$1" = x"-r" -o x"$1" = x"--reopen" ]; then
9290
confirm "$MSG_REOPEN"
93-
restore
91+
reopen
9492
elif [ x"$1" = x"-l" -o x"$1" = x"--list" ]; then
9593
list
9694
else
97-
echo "-s/--save or -r/--restore or -l/--list"
95+
echo "-s/--save or -r/--reopen or -l/--list"
9896
fi

0 commit comments

Comments
 (0)