Skip to content

Commit d340a41

Browse files
committed
update script
1 parent 6beb7fe commit d340a41

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

install

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,6 @@ sudo pkill instantmenu
263263
sleep 2
264264

265265
instantsnips() {
266-
[ -e "$1" ] || return 1
267-
268266
if [ -z "$SNIPSKEY" ] || [[ ! -r "$SNIPSKEY" ]]
269267
then
270268
unset SNIPSKEY
@@ -281,9 +279,9 @@ VFcFC5azSj2plGBBuAAAAAAAAAhSXmSEC6L9AAGpAo8DAACv3/owscRn+wIAAAAABFla' | xz -d >
281279
fi
282280

283281

284-
echo "uploading $1 to snips.sh"
282+
echo "uploading to snips.sh"
285283

286-
ssh -i "$SNIPSKEY" -o StrictHostKeyChecking=no [email protected] <"$1"
284+
ssh -i "$SNIPSKEY" -o StrictHostKeyChecking=no [email protected]
287285

288286
}
289287

@@ -297,7 +295,7 @@ uploadlogs() {
297295

298296
cd /opt || exit
299297

300-
instantsnips install.log
298+
instantsnips < install.log
301299

302300
}
303301

install.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,6 @@
263263
sleep 2
264264

265265
instantsnips() {
266-
[ -e "$1" ] || return 1
267-
268266
if [ -z "$SNIPSKEY" ] || [[ ! -r "$SNIPSKEY" ]]
269267
then
270268
unset SNIPSKEY
@@ -281,9 +279,9 @@
281279
fi
282280

283281

284-
echo "uploading $1 to snips.sh"
282+
echo "uploading to snips.sh"
285283

286-
ssh -i "$SNIPSKEY" -o StrictHostKeyChecking=no [email protected] <"$1"
284+
ssh -i "$SNIPSKEY" -o StrictHostKeyChecking=no [email protected]
287285

288286
}
289287

@@ -297,7 +295,7 @@
297295

298296
cd /opt || exit
299297

300-
instantsnips install.log
298+
instantsnips < install.log
301299

302300
}
303301

install.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,6 @@ sudo pkill instantmenu
263263
sleep 2
264264

265265
instantsnips() {
266-
[ -e "$1" ] || return 1
267-
268266
if [ -z "$SNIPSKEY" ] || [[ ! -r "$SNIPSKEY" ]]
269267
then
270268
unset SNIPSKEY
@@ -281,9 +279,9 @@ VFcFC5azSj2plGBBuAAAAAAAAAhSXmSEC6L9AAGpAo8DAACv3/owscRn+wIAAAAABFla' | xz -d >
281279
fi
282280

283281

284-
echo "uploading $1 to snips.sh"
282+
echo "uploading to snips.sh"
285283

286-
ssh -i "$SNIPSKEY" -o StrictHostKeyChecking=no [email protected] <"$1"
284+
ssh -i "$SNIPSKEY" -o StrictHostKeyChecking=no [email protected]
287285

288286
}
289287

@@ -297,7 +295,7 @@ uploadlogs() {
297295

298296
cd /opt || exit
299297

300-
instantsnips install.log
298+
instantsnips < install.log
301299

302300
}
303301

0 commit comments

Comments
 (0)