Skip to content

Commit 948ff82

Browse files
committed
Now the ladder command is at the top of the code, removed the exit command.
1 parent 8b54b3a commit 948ff82

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aut-apps.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
#! /usr/bin/env bash
2+
trap t-d-uninstaller SIGINT SIGTERM EXIT QUIT
23
if [[ $EUID -ne 0 ]]; then
34
echo "This script must be run as root" 1>&2
45
exit 1
56
fi
67
function t-d-uninstaller {
78
rm -rf $tmp_dir
89
echo "Temporary directory uninstalled"
9-
exit 1
1010
}
1111
tmp_dir=$(mktemp -d -t pub_key-XXXXXX)
12-
trap t-d-uninstaller SIGINT SIGTERM EXIT QUIT
1312
set -euo pipefail
1413
echo $tmp_dir
1514
echo 'deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main'>/etc/apt/sources.list.d/google-chrome.list

0 commit comments

Comments
 (0)