aboutsummaryrefslogtreecommitdiffhomepage
path: root/threadcat-list.sh
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-08-15 07:13:37 -0500
committerColin Okay <colin@cicadas.surf>2022-08-15 07:13:37 -0500
commitd6f05e96cb5b139b1ea0ad7a166205d9e31c2440 (patch)
treefafab6e59a0bb871fe794427ff9072ef2fed208f /threadcat-list.sh
parent19a6140f2b3d1494326ca95c27cb02680d62511f (diff)
[refactor] scripts to use env var for users
Diffstat (limited to 'threadcat-list.sh')
-rwxr-xr-xthreadcat-list.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/threadcat-list.sh b/threadcat-list.sh
index e3ccd67..420a9ff 100755
--- a/threadcat-list.sh
+++ b/threadcat-list.sh
@@ -1,10 +1,4 @@
#!/bin/bash
-CICADAS_USER=$1
+ssh $CICADAS_USER@cicadas.surf "ls -lt /opt/threadcat/" | awk '{ s = ""; for (i = 6; i <= 9; i++) s = s $i " "; print s }'
-if [ ! -z "${CICADAS_USER}" ]; then
- ssh $CICADAS_USER@cicadas.surf "ls -lt /opt/threadcat/" | awk '{ s = ""; for (i = 6; i <= 9; i++) s = s $i " "; print s }'
-else
- echo You did not provide a user name
- echo USAGE: threacat-list USER
-fi