From 961e93ca2bb2268894ac5581bd7f9accab6af032 Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 8 Oct 2017 13:45:12 -0700 Subject: [PATCH] error test --- .larbs_user.sh.swp | Bin 0 -> 12288 bytes larbs.sh | 1 + larbs_user.sh | 4 ++-- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .larbs_user.sh.swp diff --git a/.larbs_user.sh.swp b/.larbs_user.sh.swp new file mode 100644 index 0000000000000000000000000000000000000000..8d4175a24fb2486676dfdc0db32943e87963ffc6 GIT binary patch literal 12288 zcmeI2%a0tz9mmTN5C-fd1Oed?>BsH}b}e`JF6(`e6_3?=L6!nBwm}%Lg=)HMW{TLazd(+ zKHJk>kN*9>zel&_X)Qf}@@d)#ml!@jVC?l@zIpD{ZLb~LJ5v&(A$T zcmMFYo7ut7^$K_eyaHYUuYgy;E8rFI3U~#+sKX?Va z0$u^HfLFjP;1%!+cm=!yUIDLwSHLUqEmVLfjG0>)`|?&8kN^Ll{QLj2?=$u(_$T;1 z_#OBKxD1{Jr@$6?0vrZ!eUGs>!Rz1-&;Y|DjP<}%U>zI>_kzz4Gxk65U+_2Z2k=|) z7}x+G-O1R8-~;eJcn7=<-U5FCFM@O65pW;47ySDU#{LCv0dF)I`wjRtI1A2zO%Q<} zfqTFq@Wt(n{Ri9+j(`UE_`A3_cpv-&{1yBe{0aOK{0jUWWZ-3R4x9x`;688{I1E0$ zjj>O_hu}T%E_ef+0jI%_fz$l&PIv$D3U~#)0yn8ZF|u8i(<@OJtGq2c(V1Aw!kWl@ z^GH`|8<)jF6RZh~5o@KTpr=GGG`BMEP>Y*xq^>78myMuBcm$7>T$s6n18o;Vw8DX1+|QJa&%64nrg$E?w4Y;L;0ywq`5#622t zD|A~8gOrO)pS$ET3UIqtKniT{gM)XmcUvc5-=gaOq^TDC2qgF?1@_l@qL~4ABP|X)S?x8G#AXim7BEG>H%Hx7(awxQm3YkKP z1gVYuL$%1DFHOl)c}Zxzkd=udY?ATZExcx*Ajdk9kX%Vs++*`wsZmHTV|kjo{I9Pc zBO`N{cPl}M7Y2E5Nag8>UM`KLTn#2mL=v*8T4TE>i=21`M~~@)Ji8?F zDr+i7Fp!njQklmoj&N_-hL@%qEcLK&k&p(C?JX%(I%@G+hq@C5#c04&8n$B**sjP# z&`Kd*~3;UX(D5$-P5GfwX5?yM=a z>S&(ThQ!Hi`cAyqR%MzX0BDi0Ld{MI>4Xx7+^=AX=LxySN2nkXTct-NhSJ!_>-%nZ z(S%*J_lEcFyXd4I zTQ3sktftvv#FwX9@MN?%D`fSJn-?>Bl#b51UFVL{g$tW5Z>F8x2`F=#Yd$f@E@o&0 zlZt&dqbtM*J$mSJ0lh6Xm#;pwI4!elWPWqm z4QHsTqUWBbGmX+nH-tH1=)Sn#i3dIw?Cr66mCc{5OAnP&H3H`??}%B4iW0%*Wg-=B zfc~hfcZ@1+PVEheoVQYRL1axev=v*~uU~g&W+4i*s&h9 /home/$NAME/larbs_user.sh && blue Running larbs_user.sh script as $NAME... sudo -u $NAME bash /home/$NAME/larbs_user.sh || red Error when running larbs_user.sh... rm -f /home/$NAME/larbs_user.sh diff --git a/larbs_user.sh b/larbs_user.sh index 8264afd..d9546a9 100755 --- a/larbs_user.sh +++ b/larbs_user.sh @@ -1,7 +1,7 @@ #!/bin/bash -blue() { printf "\033[0;34m $* \033[0m\n" && (echo $* >> LARBS.log) ;} -red() { printf "\033[0;31m $* \033[0m\n" && (echo ERROR: $* >> LARBS.log) ;} +blue() { printf "\033[0;34m $* \033[0m\n" ;} +red() { printf "\033[0;31m $* \033[0m\n" ;} NAME=$(cat .name) rm -f .name